fixed the hardcoding error