added in second conditional to compare