added functions for add one or multiple dependencies