changed places in creating lns and unpacking