outofmemory error solved (Hopefully completely)