partially added if stmt