added scoreing scheme