modified temp from array to char