add with composer using function