inheritance-overriding the method