remove array reverse, fix spacing issues