solve problem with dependencies