just some java codes