deleting .cup .flex, fixing spaces