trying out decreasing penalties, gap penalty fixed(was integer instead of double)