working on negative numbers