caps implies in != null.. let's assert instead