added header fixed initial staring position bug