improved syntax, fixed little bug score