fix the cellObj funciton definition