bug fix with append xy