! prevent undefined error under certain conditions