alternative method for element creation