updated maketitle function