if no object is passed, then return the link type
adding the baselist and removing the duplicated code.