added data retreiving functions