finished up sep logic