relize basic function of pos