removing unnecessary memory/file checks