got rid of incorrect function