use sbp function for all.