changed to do/end block instead of {}