replaced lasso algorithm with builtin rectangle one