working on sharpness measure