added helper and dilation class