added support for multiple right hand side