fixed typo on line 259
fixed a few typos, new integrated functions seem to be working fine