rename contents to getContents