small changes; duplicated another version of em