optimize loading the data