decided to convert to JS instead