a few fixes to codes