add @Override annotation to onInstantiation method