preventing extension of object