made program more portable