modified for require() function compliance