added some ruby syntax