working on generate score