change source version to be 1.7 to avoid warning during compile