added a crazy messed up conditional