chomp not quite working. need use pointers?