implemented filled? function