added mirror check