fixes bugs up to user enters 'list'