working for odd numbers only