remove unnecessary object key-value pair