added get cell function