removed "s" character from outside function that was causing errors
all functions working