another attempt to get this right