adding integer functionality