constructor for simple usage