got typeerror. not sure why