got functions working. found error in instructions