work on bringing all three functions together under klerk.rb