removed shadow on check and call correct function