got rid of functions that were not used.