removed another unnecessary socket call