added if expression functions