added enhanced ruby syntax