adding multiplication logic