take out the function