fixed the lame constructor