add protection from modified prototype