This is someone elses code that needs to be gutted