seems to be working with int and pointers