changes class on laybet