correnting if-stat