set the basic function