dont have 2 ints for buffer, check for null