use const instead of hardcoding
fix unexpected EOF