still trying to reduce memory