splitting create list function into append and prepend.