added basic evaluation function
finalized evaluation