cleaned up leading zeros functions.  need to clean up unused portions of code