fixed fn plot