finished logic for int.  working on char now