update for surface api change.