replace constructor with __construct