used correct ruby syntax