inserting to the end fix