Rewrited Declare method for better perfomance and working inhtrited methods