trying some wrongness to make the js version non racist