head program is woking with basic functionlity