code button works