made retrieveData sync