Machining is a tool used for: