fix for old ruby syntax