add apply() for statements