added automatic creation of filename