correct order for dependencies