alter cap and dep