adding getdata into same file