need to fix the auto construct function. not working properly and I dont know why...