added method for creating new data