fixed error typing