added custom title option
removed unnecessary parameters