works up to 6