refinement of structure, main methods done