use blocks to improve codeclimate score