second batch of code