bug fixed, multiplied by phase length