connecting desing and functions