using append() instead of manually appending