still getting type error