fixed hardcoding error