modified b and c for demo