change if clause on common nodes push to work properly