before using array