constructor is working