added a preliminary fitness function