changed variable and took out hard coding