updated working code with centos 6