fixing graphs

get best and get worst functions fixed