HEAPS BETTER CODE