making compatible with pillow