added number type detection funtions