problem with functions solved, it turns out that this was a quick fix