fix nullpointerexception and optimize updateperformer
removed unused method