solving dependencies