changin logic for body seletion