made function and two tests