corrected how constructor is called