second commit

added data section, changed write paths for the function