replace funcs with accel js