not working, typerror