adding connection value and fixing some properties