fixed logic for seperate snake calss