deleted static functioins that are no longer used.