adding data handler