fixing ruby syntax