modified triangle
fixed java library