made custom code rules simpler