declare memory at begining now