changed variable types and name for server check