sorted out dependencies