added optional callback param in constructor
added optional callback param in constructor