finished kinging functionality