created obj constructor