added contains for both three and five