merging coded but not really working