forget to take out layerbox in java