fixing undefined check. no. scratch that. removing the need for one.