change the code a little