fixed appending of negative numbers