fixed broken sub