changed getuid to geteuid