fixed bug in right multiplication