updated composite source code