not sure if fillmode is being honored