thanks for the comments. updated the first post with another version.