need to make an empty poslist before appending to it