list append doesn't work that I expected. changed to just simple allocation of list