retrieving data from back-end successfully