some codes for test