cleaning up scripts
fixing type