fill and pan working