small type bug fixed
added constructor