changed for linux compatibility