fixed adding contructor to methods