removed my simple functions at the start of the script, because they weren't really necessary