some validation done