fix for constructor