code to do