added assert error check