deleted unnecessairy variables