removed unused
use stat to check