are you sure this should be inside the constructor condition?