changed function append() to appendType()