Apple to officially kill off the iphone 4 on october 31