made java5 compatible