created rulus objs and split the code