optimize hard coding