address saghuls comments
make name of function more reasonable