edited ports and added passing