changed variable names got code to finally run