added more initialization - RHS, bounds checking