optimizes code uses {} instead of do end in a single line block