tryed changing to open file, must test further