ref rules