king functionality