apparently e[0] is not a number, thanks stackoverflow