making stream happy with added constructor