Could you refactor to new ruby syntax?