optimizing for space usage - implemented (reverse)