fixed ruby syntax issue