tried helping debug, altered code but not permanently
merging things whoo