storing value as int in memory