added if to javafy