implements sunset function to jane.rb