diff ways of retrieving data