if and else push