added fill and unfill routines