updating to work correctly in Linux OS