main runs but buggy output
found bug; line set is empty