implementing instance handler block