trying to fix the type