cleaning up variable math