add side correction - still bit buggy