modified to prototyoe style