Fixed trim problem and updates based on parent_Id added pest but the code needs work