added sign code to multiply function