finished reintegration of bug added needed signed->unsigned step