attempt to fix array type error