replace selector by object