Making ka a function with selecta