pushed updated logic error solution