added check for missing trades