changed method to accept a string of ids instead of an array.