simplified and negative numbers added