removed parse pos function