changed function name and added strict mode