doing the code