added functionality for creating new candidates