code for problems