correcting some ruby syntax