add semi-colons, more info and delete arrays the proper way