added functions and composer