mechanical functions