update solution for linux shell