multiply_var out of scope error

- changed the scope of multiply_val it causes errors on recent gcc's. 
- whitespace removal.