add mixIn function