fixed bug in constructor args