removed rest parameter

wanted simpler implementation for now