updated some code using blocks