changed multiply to numpy multiply