code all working