dealing with static in java