added code for the second time