fix class constructor location