proper ruby syntax