kirk solution works