ficed appending to file, otherwise script wouln't have worked