constructor bug fix part 3