get id of object thru spl

refactoring