pan

still have some bug to be fix