$elmsln was the issue here