adding "require"...
fixing bug