removed forks and function args bug