changed style, added retrieveFile function