convert input atoms to lists