added check for appended number