was actually working but returning false--bad java