change code for linux platform