pending logic