small defensive coding in tips