changed check for is_merged function