changed K to 5