made replace method non static in accordance with hw specification