Can you explain the logic for this? A comment may be good here. 6 would be better as a constant