setting data before using