fixed bug (need to pass in id)