applied changes to code