basic codes for usage in general applications