made script for testing, fixed generator