before obj is used