remove unused files and format time