The present invention relates to novel compounds of formula (VIII) and (X), processesfor their preparation and their use in the preparation of paliperidone or a saltthereof. There is also provided by the present invention novel processes forpreparing intermediates for use in the preparation of paliperidone or a saltthereof, and novel processes for preparing paliperione or a salt thereof.