ruby syntax polishing