added message function and initial points