add ules and test