removed uneccesary enum keyword
removed unused variable