storing tmp, compensating for 6th element