checking dependancies