error was coming from a different place