added dependecies and function to companies