still debugging nan