added multiples functionality, pre-refactor