bugfix and delete files