fixed ruby syntax