EthanR: finally found the solution!