added new functions for asn2