got file info and creates array