added mixin instead of inline script