gets rid of unnecessary functions