polishes up the mirror implementation