Minor changes in contains Method

Change-Id: I11c1b55a4721a3d92ce70d2fb27a00bde4705583
Signed-off-by: Parth Satra <pasatra@ncsu.edu>