Apparatus and method for processing a signal