updated functionality of files