updated for resdef numbering