rename $cat variable to $title