check function while add proc