setting up code