quick logic added