first batch of code