remove unneeded function call