parts definition and function