initial position of ap and sta is set to 0,0,0