first review find some concern

1.In line no 124:the default id which is currently passed 0 & this consume resource to execute extra steps for line no 126 comparison & line 128 assignment.
So, if we put default parameter 1 then we can save the execution of assignment line no 128.