looks good. need to create a interface to call this function when required. interface would be for a new ticket.