converted all functions to using symbols