small codes for testing