mirroring input