get rid of unneeded function