implemented getproperty in block