removed janky function, will cleanup js later