final version of create_mirror