improved code in mixin post