added new functions and math equations