prevent 'null' pointer exception