worked on buttoncheck