add remove method to prototype