fix declaration method