seems to be correct logic, enable functionality