hard coding replacement