switched to new ruby syntax