removed functions from loop