fixed "method definition should be compatible with parent class" bug