fix redundant return