add fill() exception catching