added call val function