for #1. fix bug - set file.contents