changed state to present for java