wrap all stuff into one conditional ps