check for correct extension