renamed fd to objPtr