update to ruby style