null can be passed in constructor