fixed accept statement