added code to check for first round