make sure to stay compatible with java 1.6