change array for Linklist
refactor