added correct chord generation