changed up symbol variables and function