fix for new constructor