The court shall pass upon the objections to the instructions and shall either give each instruction as requested or proposed or refuse to do so, or give the requested instruction with modification. All instructions given or requested must be filed as a part of the record of the case.
The court reporter shall record all objections to the instructions given or refused by the court, together with modifications made, and the rulings of the court.
No party may assign as error the giving or failure to give an instruction, including a lesser included crime instruction, unless the party objects thereto before the jury retires to consider its verdict stating distinctly the matter to which the party objects and the grounds of the objection unless the instruction or the failure to give an instruction is clearly erroneous. Opportunity shall be given to make the objections out of the hearing of the jury.
K.S.A. 22-3414