migrate filter and project to java 8